package com.remoting.api.registry.bean;

import java.util.List;
/**
 * Endpoint
 * <p>说明:</p>
 * <li></li>
 * @author DuanYong
 * @since 2017年3月3日上午9:41:38
 */
public class Endpoint {
	/**ID*/
	private String id;
	/**服务路径*/
	private String serviceAddr;
	/**Host地址集*/
	private List<HostInfo> hosts;
	/**类型*/
	private String type = "https";

	public Endpoint(String id, String serviceAddr,String type, List<HostInfo> hosts) {
		this.id = id;
		this.serviceAddr = serviceAddr;
		this.type = type;
		this.hosts = hosts;
	}
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getServiceAddr() {
		return serviceAddr;
	}

	public void setServiceAddr(String serviceAddr) {
		this.serviceAddr = serviceAddr;
	}

	public List<HostInfo> getHosts() {
		return hosts;
	}

	public void setHosts(List<HostInfo> hosts) {
		this.hosts = hosts;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
}
